package org.wk.account.enums;

/**
 * @Description 鲸仔、鲸钻打款状态
 * @param
 * @author ZhaoPing'an
 * @Date 2018/7/3 14:22
 */
public enum ExchangeCNYStatus {
    NOT_EXCHANGE_CNY("not_exchange_cny","未打款"),
    HAS_EXCHANGE_CNY("has_exchange_cny","已打款"),
    REFUSE_EXCHANGE_CNY("refuse_exchange_cny","拒绝打款");
    private String code;
    private String name;
    private ExchangeCNYStatus(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static ExchangeCNYStatus containsCode(String code) {
        for (ExchangeCNYStatus item : ExchangeCNYStatus.values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return null;
    }

    /**
     * @return the code
     */

    public String getCode() {
        return code;
    }

    /**
     * @param code 要设置的 code
     */

    public void setCode(String code) {
        this.code = code;
    }
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name 要设置的 name
     */

    public void setName(String name) {
        this.name = name;
    }
}
